		<include file="Index/header" />
        <!--sidebar left start-->
        <include file="Index/nav" />
        <!--左侧栏 end-->
        <!--主内容 start-->
        <section class="main-content-wrapper">
            <section id="main-content">
                <!--tiles start-->
                <div class="row">
                    <div class="col-md-12">
                        <!--breadcrumbs start -->
                        <ul class="breadcrumb">
                            <li><a href="/admin.php"><i class="fa fa-dashboard"></i>后台管理</a>
                            </li>
                            <li>菜单管理</li>
                            <li class="active">菜单列表</li>
                        </ul>
                        <!--breadcrumbs end -->
                        
                    </div>
                </div>
                <!--tiles end-->
                
                <!--表格区-->
                <div class="row">
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h3 class="panel-title">菜单列表</h3>
                                <div class="actions pull-right">
                                    <i class="fa fa-chevron-down"></i>
                                    <i class="fa fa-times"></i>
                                </div>
                            </div>
                            <div class="panel-body"> 
                            	<div class="row">
								  <div class="col-lg-6">
								    	<form action="/admin.php" method="get">
								    <div class="input-group">
									    	<span class=" input-group-btn "><button class="btn btn-disable" type="button">类型</button></span>
									    	<select name="type" class="form-control ">
													<option value="">请选择类型</option>
													<option value="1" <if condition="$type eq 1">selected="selected"</if> >后台菜单</option>
													<option value="0" <if condition="$type eq 0">selected="selected"</if> >前台导航</option>
											</select>
											<input type="hidden" name="c" value="menu" />
											<input type="hidden" name="a" value="index" />
										    <span class="input-group-btn">
										       <button class="btn btn-primary" type="submit">搜索</button>
										    </span>
								    </div><!-- /input-group -->
								    	</form>
								  </div><!-- /.col-lg-6 -->
								  
								  <div class="col-lg-6">
	                            	<button id="cs_add_btn" type="button" class="btn btn-primary"><i class="fa fa-plus-circle"></i>添加</button>	
								  </div>	
								</div><!-- /.row -->

                            	<form id="cs_listorder_form">
                                <table id="example" class="table cs_menu_table table-striped table-bordered" cellspacing="0" width="100%">
                                    <thead>
                                        <tr>
                                        	<th width="14">排序</th>
                                            <th>菜单id</th>
                                            <th>菜单名</th>
                                            <th>模块名</th>
                                            <th>类型</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>

                                    <tbody>
                                    <volist name="menus" id="menu">
                                        <tr>
                                        	<td><input size="4" type="text" name="listorder[{$menu.menu_id}]" value="{$menu.listorder}" /></td>
                                            <td>{$menu.menu_id}</td>
                                            <td>{$menu.name}</td>
                                            <td>{$menu.m}</td>
                                            <td>{$menu.type|getMenuType}</td>
                                            <td>{$menu.status|getMenuStatus}</td>
                                            <td><span class="btn btn-primary btn-xs" attr-id="{$menu.menu_id}" id="edit"><i class="fa fa-edit"></i></span>&nbsp;&nbsp;<span class="btn btn-danger btn-xs" attr-id="{$menu.menu_id}" attr-message="删除？" id="del"><i class="fa fa-trash-o"></i></span></td>
                                        </tr>
                                    	
                                    </volist>
                                      
                                       
                                    </tbody>
                                </table>
                                <nav>
                                	<ul class="pagination">
                                		{$pageRes}
                                	</ul>
                                </nav>
								<div class="col-lg-6">
	                            	<button id="cs_listorder_btn" type="button" class="btn btn-primary"><i class="fa fa-sort-numeric-desc"></i>更新排序</button>	
								</div>
								</form>
                            </div>
                        </div>
                    </div>
                </div>
              
                
            </section>
        </section>
        <!--主内容区 end-->
        <!--右侧工具栏 start-->
        <aside class="sidebarRight">
            <div id="rightside-navigation ">
                <div class="sidebar-heading"><i class="fa fa-user"></i> Contacts</div>
                <div class="sidebar-title">online</div>
                <div class="list-contacts">
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/Public/assets/img/avatar.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>James Bagian</h4>
                            <p>Los Angeles, CA</p>
                        </div>
                        <div class="item-status item-status-online"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/Public/assets/img/avatar1.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Jeffrey Ashby</h4>
                            <p>New York, NY</p>
                        </div>
                        <div class="item-status item-status-online"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/Public/assets/img/avatar2.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>John Douey</h4>
                            <p>Dallas, TX</p>
                        </div>
                        <div class="item-status item-status-online"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/Public/assets/img/avatar3.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Ellen Baker</h4>
                            <p>London</p>
                        </div>
                        <div class="item-status item-status-away"></div>
                    </a>
                </div>

                <div class="sidebar-title">offline</div>
                <div class="list-contacts">
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/Public/assets/img/avatar4.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Ivan Bella</h4>
                            <p>Tokyo, Japan</p>
                        </div>
                        <div class="item-status"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/Public/assets/img/avatar5.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Gerald Carr</h4>
                            <p>Seattle, WA</p>
                        </div>
                        <div class="item-status"></div>
                    </a>
                    <a href="javascript:void(0)" class="list-item">
                        <div class="list-item-image">
                            <img src="/Public/assets/img/avatar6.gif" class="img-circle">
                        </div>
                        <div class="list-item-content">
                            <h4>Viktor Gorbatko</h4>
                            <p>Palo Alto, CA</p>
                        </div>
                        <div class="item-status"></div>
                    </a>
                </div>
            </div>
        </aside>
        <!--sidebar right end-->
    </section>
    <!--Global JS-->
    <script src="/Public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/Public/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="/Public/assets/plugins/waypoints/waypoints.min.js"></script>
    <script src="/Public/assets/plugins/nanoScroller/jquery.nanoscroller.min.js"></script>
    <script src="/Public/assets/js/application.js"></script>
    <script src="/Public/js/dialog/layer.js"></script>
    <script src="/Public/js/dialog.js"></script>
    <!--Page Leve JS -->
    <!--<script src="/Public/assets/plugins/dataTables/js/jquery.dataTables.js"></script>-->
    <script src="/Public/assets/plugins/dataTables/js/dataTables.bootstrap.js"></script>
    <script src="/Public/js/admin/common.js" type="text/javascript" charset="utf-8"></script>
    
    <!--Load these page level functions-->
    <script>
		var SCOPE={
			'add_url':'/admin.php?c=menu&a=add',
			'edit_url':'/admin.php?c=menu&a=edit',
			'del_url':'/admin.php?c=menu&a=del',
			'listorder_url':'/admin.php?c=menu&a=listorder',
		}
    </script>   

</body>

</html>
